package com.guigu.lqxm.jy.controller;

import com.guigu.lqxm.jy.service.impl.JyServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/shou")
public class JyController {
    @Autowired(required = false)
    JyServiceImpl jyService;

    @PostMapping("del")
    @ResponseBody
    public int del(Integer id){
        int del = jyService.del2(id);
        return del;
    }
}
